package kr.saeildamil.androidstudy_second;

import kr.saeildamil.androidstudy_second.actionbar.ActionBarMain;
import kr.saeildamil.androidstudy_second.animation.AnimationMain;
import kr.saeildamil.androidstudy_second.br_service.Ch2930Main;
import kr.saeildamil.androidstudy_second.clipboard.Ch27Main;
import kr.saeildamil.androidstudy_second.cp.Ch26Main;
import kr.saeildamil.androidstudy_second.draw.DrawMain;
import kr.saeildamil.androidstudy_second.fileio.Ch25Main;
import kr.saeildamil.androidstudy_second.fragment.FragmentMain;
import kr.saeildamil.androidstudy_second.gesture.Ch31Main;
import kr.saeildamil.androidstudy_second.multimedia.Ch33Main;
import kr.saeildamil.androidstudy_second.network.Ch28Main;
import kr.saeildamil.androidstudy_second.valueani.Ch24Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch(v.getId()){
		case R.id.main_btn01:
			intent.setClass(this, FragmentMain.class);
			break;
		case R.id.main_btn02:
			intent.setClass(this, ActionBarMain.class);
			break;
		case R.id.main_btn03:
			intent.setClass(this, DrawMain.class);
			break;
		case R.id.main_btn04:
			intent.setClass(this, AnimationMain.class);
			break;
		case R.id.main_btn05:
			intent.setClass(this, Ch24Main.class);
			break;
		case R.id.main_btn06:
			intent.setClass(this, Ch25Main.class);
			break;
		case R.id.main_btn07:
			intent.setClass(this, Ch26Main.class);
			break;
		case R.id.main_btn08:
			intent.setClass(this, Ch27Main.class);
			break;
		case R.id.main_btn09:
			intent.setClass(this, Ch28Main.class);
			break;
		case R.id.main_btn10:
			intent.setClass(this, Ch2930Main.class);
			break;
		case R.id.main_btn11:
			intent.setClass(this, Ch31Main.class);
			break;
		case R.id.main_btn12:
			intent.setClass(this, Ch33Main.class);
			break;
	
		}
		startActivity(intent);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
